package com.zretc.dao;

import com.zretc.entity.EmployeeSalary;
import com.zretc.entity.Salary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 员工账套Mapper
 */
@Mapper
@Repository
public interface EmployeeSalaryMapper {


    /**
     * 添加员工的工资账套
     * @param employeeSalary
     * @return
     */
    int add(EmployeeSalary employeeSalary);
    /**
     * 根据条件1.员工姓名2.工资账套名称  查询
     * @param map
     * @return
     */
    List<EmployeeSalary> find(Map<String, Object> map);



    /**
     * 修改员工的工资账套
     * @param salaryId
     * @return
     */
    int update(@Param("employeeId") Integer employeeId,@Param("salaryId") Integer salaryId);


    /**
     * 根据员工编码删除
     * @param employeeId
     * @return
     */
    int delete(Integer employeeId);

}
